package com.example.apps

import com.example.apps.entity.AppEntity
import com.example.lib_base.BaseRepo
import com.example.lib_base.Res
import com.example.lib_http.HttpType
import com.example.lib_http.NetworkFactory
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

class AppsRepo @Inject constructor() : BaseRepo() {
    private val apiService by lazy { NetworkFactory.factory(HttpType.NONE).create(ApiService::class.java) }

    fun getApps(): Flow<Res<AppEntity>> {
        return apiService.getApps()
    }

//    fun addApps(name: String): Flow<Res<Any>> {
//        return apiService.addApps(name)
//    }
}